﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _02GetMaxMethod
{
    class Program
    {
        static int GetMax(int first, int second)
        {
            int max = first;
            if (first < second)
            {
                max = second;
            }
            return max;
        }
        static void Main(string[] args)
        {
            Console.Write("Enter first integer:");
            int first = int.Parse(Console.ReadLine());
            Console.Write("Enter second integer:");
            int second = int.Parse(Console.ReadLine());
            Console.Write("Enter third integer:");
            int third = int.Parse(Console.ReadLine());
            int max = GetMax(first, second);
            max = GetMax(max, third);
            Console.WriteLine("The biggest of the three is {0}.", max);
        }
    }
}
